package com.beijing.cyou.utils;

public class NumberUtil {

	public static Integer value = 0 ;
	
	public static Integer getValueByString(String string) {
		Integer finalValue = 0 ;
		if (NotNullHelps.isNotNull(string) == false) {
			return finalValue ;
		}else {
			try {
				finalValue = Integer.parseInt(string);
			} catch (Exception e) {
				finalValue = 0 ;
			}
			return finalValue ;
		}
	}
	
}
